package com.epam.cdp.ejb.statefull;

import java.util.List;

import javax.ejb.Local;

import com.epam.cdp.ejb.utilities.GadgetWindow;
import com.epam.cdp.ejb.utilities.Position;
import com.epam.cdp.ejb.utilities.exceptions.GadgetWindowDoesntExists;

@Local
public interface UserSession {
	GadgetWindow openNewWindow(String name, Position possition);

	void closeWindow(String name) throws GadgetWindowDoesntExists;
	
	List<GadgetWindow> getAllWindows();
	
	GadgetWindow getByName(String name);
	
}
